package com.insis;

import com.insis.manager.RpcClientManager;
import com.insis.server.service.HelloService;
import com.insis.server.service.QueryMoneyService;

public class RpcClient {
    public static void main(String[] args) {
        RpcClientManager rpcClientManager = new RpcClientManager();
        HelloService helloService = rpcClientManager.getProxyService(HelloService.class);
        QueryMoneyService queryMoneyService = rpcClientManager.getProxyService(QueryMoneyService.class);
        System.out.println(helloService.sayHello("李华"));
        System.out.println(queryMoneyService.queryMoney());
    }
}
